package com.jiuhaohealth.common.page;

import java.util.List;

public class PageModel<E> {

	private List<E> data;
	private int totalNumber;
	private int offset;
	private int pageSize;
	public List<E> getData() {
		return data;
	}
	public void setData(List<E> data) {
		this.data = data;
	}
	public int getTotalNumber() {
		return totalNumber;
	}
	public void setTotalNumber(int totalNumber) {
		this.totalNumber = totalNumber;
	}
	public int getOffset() {
		return offset;
	}
	public void setOffset(int offset) {
		this.offset = offset;
	}
	
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public PageModel(List<E> data, int totalNumber, int offset, int pageSize) {
		super();
		this.data = data;
		this.totalNumber = totalNumber;
		this.offset = offset;
		this.pageSize = pageSize;
	}
	public PageModel() {
		super();
	}

}
